@echo off

if "%~1"=="" (
    echo 缺少参数
    exit /b 1
)

set HOME=C:/Users/【请替换为您的用户名】/.cangjie-sdk/5.0/cangjie

cjc --target=aarch64-linux-ohos ^
    -B "%HOME%/compiler/third_party/llvm/bin" ^
    -B "%HOME%/musl/usr/lib/aarch64-linux-ohos" ^
    -L "%HOME%/musl/usr/lib/aarch64-linux-ohos" ^
    --sysroot "%HOME%/musl" ^
    %*
